package practice2;

public class ValueTransferTest {
    public static void main(String[] args) {
        int m = 10;
        int n = m;
        System.out.println("m = " + m  + ",n = " + n);

        n = 20;
        System.out.println("m = " + m + ", n = " + n);
        Order o1 = new Order();
        o1.OrderId = 1001;
        Order o2 = o1;
        System.out.println("O1.orderId = " + o1.OrderId + "     O2.ordreId = " + o2.OrderId);
        o2.OrderId = 1002;
        System.out.println("o1.OrderId = " + o1.OrderId + "     o2.OrderId = " + o2.OrderId);

    }
}

class Order {
    int OrderId;
}
